package com.dys.testoverwrite;

/**
 * @className: com.dys.testoverwrite.Student
 * @description: com.dys.testoverwrite
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/07/18 下午9:46
 */
public class Student extends BasePerson {

    public void study() {
        System.out.println("子类学习的方法");
    }

    public void eat() {
        System.out.println("学生吃饭的方法...");
    }

    public Student sleep() {
        System.out.println("子类睡觉的方法...");
        return new Student();
    }
}
